package net.kelissa.jenetic.impl.conceiver;

import java.util.List;

import net.kelissa.jenetic.Gene;
import net.kelissa.jenetic.RandomUtil;

public class ConceiverOneRandom extends ConceiverDelegateGene
{

  @Override
  public List<Gene> conceive(List<Gene> mother, List<Gene> father)
  {
    double rand = RandomUtil.getRandom().nextDouble();
    if (rand < 0.5)
      return RandomUtil.clone(mother);
    else
      return RandomUtil.clone(father);
  }

}
